package com.example.service;

import com.example.entity.User;

/**
 * @author linjy on 2023/1/5
 */
public interface UserService {
    /**
     * save user
     */
    User saveUser(User user);

    /**
     * find user by account
     */
    User findByUsername(String username);

    /**
     * user login
     */
    User login(String username, String password);

}


